<div id="hp_intro"><%= @page_title %></div>
<p>
<%= t('network.influential.intro', :currency_name => current_government.currency_name.downcase, :currency_short_name => current_government.currency_short_name)%>
<p>
<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td></td>
		<td><span class="table_header"><%= t('rank') %></span></td>
		<td style="padding-left: 3px;"><span class="table_header"><%= t('time.wk') %></span></td>
		<td style="padding-left: 3px;"><span class="table_header"><%= t('time.mo') %></span></td>
		<td style="padding-left: 7px; margin-bottom: 2px;" colspan="2"><%= will_paginate @users %></td>				
	</tr>
<% for user in @users %>
	<tr><td valign="top"></td>
		<% if params[:controller] == 'branch_users' %>
			<%= render :partial => "branch_users/rank_week_month", :locals => {:user => user } %>		
		<% else %>
			<%= render :partial => "priorities/rank_week_month", :locals => {:priority => user } %>
		<% end %>
		<td valign="top" width="26" style="padding: 10px 5px 4px 7px;">
			<%= render :partial => "users/pic", :locals => {:user => user}%>
		</td><td style="padding: 7px 5px 4px 0px;" valign="top">
			<%= link_to user.login, user %><span class="pc"><%= user.capitals_count%><%= current_government.currency_short_name %></span><% if user.followers_count > 0 %> <%= t('users.followers.name', :count => user.followers_count)%><% end %>
			<% if user.has_top_priority? and user.top_endorsement.priority %>
				<br/><%= t('endorsements.priority1') %>
				<% if user.top_endorsement.is_down? %><span class="opposed"><%= t('oppose.ing')%></span><% end %>
				<%= link_to user.top_endorsement.priority.name, user.top_endorsement.priority %>
			<% end %>
		</td>
	</tr>
<% end %>

</table>				
<p>
<%= will_paginate(@users) %>
			